module ActiveRecordExtension
  # assign attributes from params
  # becasuse #attributes= can't be assigned the attributes from params
  def assign_attributes_from_params(params)
    self.attributes = Hash[*(params.to_a.collect{|k,v| [k.to_sym,v] }.flatten)]
  end
  
end